export default class StorageManager {
    static readonly instance: StorageManager = new StorageManager();

    /**
     * 获取用户某个键对应的持久化数据
     * @param key 
     */
    getItem(key: string) {
        cc.sys.localStorage.getItem(key)
    }

    /**
     * 设置用户的持久化数据
     * @param key 
     * @param value 
     */
    setItem(key: string, value: any) {
        cc.sys.localStorage.setItem(key, value);
    }


    /**
     * 移除键对应的持久化数据
     * @param key 
     */
    removeItem(key: string) {
        cc.sys.localStorage.removeItem(key);
    }
}